﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class CustContactBLL : ICustContactBLL
    {
        private ICustContactDAL _custContactDAL;
        public CustContactBLL(ICustContactDAL contactDal)
        {
            _custContactDAL = contactDal;
        }

        public void Add(CustContact model)
        {
            _custContactDAL.Add(model);
        }
        public void Update(CustContact model)
        {
            _custContactDAL.Update(model);
        }
        public void Delete(int contactId)
        {
            _custContactDAL.Delete(contactId);
        }
        public CustContact GetModel(int contactId)
        {
            return _custContactDAL.GetModel(contactId);
        }
        public DataTable Query(string strWhere)
        {
            return _custContactDAL.Query(strWhere);
        }
    }
}